<template>
  <form>
    <slot></slot>
  </form>
</template>

<script>
export default {
  provide() {
    //注入，把表单实例作为参数传递，子代可以直接使用
    return {
      form: this,
    };
  },
  props: {
    model: {
      type: Object,
      require: true,
    },
    rules: {
      type: Object,
    },
  },
};
</script>
